package com.atguigu.system.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author atguigu
 * @since 2025-03-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("biz_spu")
@ApiModel(value="Spu对象", description="")
public class Spu implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "SPU 的名称，用于识别不同的标准产品单位")
    private String spuName;

    @ApiModelProperty(value = "SPU 对应的品牌名称")
    private String brand;

    @ApiModelProperty(value = "SPU 对应的图片链接，用于展示该标准产品单位的外观等信息")
    private String imageUrl;

    @ApiModelProperty(value = "SPU 的详细描述，用于介绍该标准产品单位的特点、功能等")
    private String description;

    @ApiModelProperty(value = "SPU 记录的创建时间，自动记录插入记录时的时间戳")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "SPU 记录的更新时间，插入或更新记录时自动更新为当前时间戳")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "逻辑删除标志，0 表示未删除，1 表示已删除")
    @TableLogic
    private Integer isDeleted;


}
